import random

pop = 0
a = [-7, -8]
b = [5, -8]
c = [5, 5]
d = [-7, -5]
n = int(input("Кол-во выстрелов "))
for i in range(1, n+1):
    x = random.randint(-100, 100)
    y = random.randint(-100, 100)
    if x >= -7 or x <= 5 and y <= 5 or y >= -8:
        if x <= 7 or x >= 5 and y >= 5 and y <= -8:
            pop += 1

print(f"Попадания {pop}")
